<template>
  <div class="video">
    <img :src="v.videosrc" alt="" />
    <div class="videoinfo">
      <img class="authorimg" :src="v.authorsrc" alt="" />
      <span>{{ v.videolength }}</span>
    </div>
    <div class="bottom">
      <p>{{ v.videotitle }}</p>
      <div class="bottom-bottom" style="display: flex">
        <div class="left">
          <i class="iconfont icon-play"></i>
          <span>{{ v.videoplayback }}</span>
          <i class="iconfont icon-31dianzan"></i>
          <span>{{ v.videolikecount }}</span>
        </div>
        <span>{{ v.videotype }}</span>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  created() {
    this.$store.dispatch("getyuncun");
  },
  props: ["v"],
};
</script>
<style lang="less" scoped>
.video {
  width: 3.3rem;
  height: 5.55rem;
  border-radius: 0.25rem;
  position: relative;
  margin-bottom: 0.15rem;
  background-color: #fff;
  img {
    width: 3.3rem;
    height: 4.2rem;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
  }
  .videoinfo {
    width: 100%;
    position: absolute;
    padding: 0 0.15rem;
    bottom: 2rem;
    display: flex;
    justify-content: space-between;
    .authorimg {
      width: 0.45rem;
      height: 0.45rem;
      border-radius: 50%;
    }
  }
  .bottom {
    height: 1.4rem;
    width: 100%;
    padding: 0.25rem 0.15rem;
    p {
      font-size: 0.22rem;
    }
    .bottom-bottom {
      display: flex;
      justify-content: space-between;
      i {
        font-size: 0.17rem;
        margin-right: 0.08rem;
      }
      span {
        font-size: 0.16rem;
        color: #89898b;
        margin-right: 0.2rem;
      }
    }
  }
}
</style>